//
//  Member.hpp
//  MMS
//
//  Created by 王翛然 on 16/8/10.
//  Copyright © 2016年 王翛然. All rights reserved.
//

#ifndef Member_hpp
#define Member_hpp

#include <stdio.h>
#include <string>

class Member
{
public:
    Member(const std::string &memName,
           const std::string &address,
           const std::string &pro)
    : memberId("-1"), memberName(memName),
    memAddress(address), professional(pro)
    { }

    Member(const std::string &memId,
           const std::string &memName,
           const std::string &address,
           const std::string &pro)
    : memberId(memId), memberName(memName),
    memAddress(address), professional(pro)
    { }
    
    void setMemberId(const std::string &memId)
    { memberId = memId; }
    
    const std::string& getMemberId() const { return memberId; }
    const std::string& getMemberName() const { return memberName; }
    const std::string& getAddress() const { return memAddress; }
    const std::string& getProfessional() const { return professional; }
    
private:
    std::string memberId;
    std::string memberName;
    std::string memAddress;
    std::string professional;
};
#endif /* Member_hpp */
